{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{% block title %}SNAPBoard{% endblock %}</title>
	<link rel="stylesheet" href="{{ SNAP_MEDIA_PREFIX }}/css/blueprint/compressed.css" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="{{ SNAP_MEDIA_PREFIX }}/css/blueprint/print.css" type="text/css" media="print" />
    <!--[if IE]>
    <link rel="stylesheet" href="{{ SNAP_MEDIA_PREFIX }}/css/blueprint/ie.css" type="text/css" media="screen, projection" />
    <![endif]-->
	<link rel="stylesheet" href="{{ SNAP_MEDIA_PREFIX }}/css/newskin.css" type="text/css" />

    <link rel="alternate" type="application/rss+xml" title="RSS" href="{% url snapboard_feeds "latest" %}" />

    {# this is required for some javascript rpc functions #}
    <script type="text/javascript">
        var SNAPBOARD_URLS = {
            'rpc_preview': '{% url snapboard_rpc_preview %}',
            'rpc_action': '{% url snapboard_rpc_action %}',
            'rpc_postrev': '{% url snapboard_rpc_postrev %}'
        };
        var SNAP_POST_FILTER = '{{ SNAP_POST_FILTER }}';
    </script>
    <script type="text/javascript" src="{% url snapboard_js_i18n %}"></script>
    <script src="{{ SNAP_MEDIA_PREFIX }}/js/yui/yahoo-dom-event.js" type="text/javascript"></script>
    <script src="{{ SNAP_MEDIA_PREFIX }}/js/yui/connection-min.js" type="text/javascript"></script>
    <script src="{{ SNAP_MEDIA_PREFIX }}/js/thread.js" type="text/javascript"></script>
    <script type="text/javascript">
        YAHOO.util.Event.onDOMReady(procAllTimeSince);
    </script>
    {% block snap_extra_head %}{% endblock %}
</head>

<body class="snapboard">
<div class="container showgrid">
    <div id="sb-header" class="span-18">
        {% block site_title %}
            <a href="http://code.google.com/p/snapboard/">SNAPBOARD</a>
        {% endblock %}
    </div>
    <div class="span-18">
        <div id="sb-main" class="span-14">
            {% if messages %}
                <div class="messagelist">
                    <ul class="messagelist">
                        {% for msg in messages %}
                            <li>{{ msg }}</li>
                        {% endfor %}
                    </ul>
                </div>
            {% endif %} 
            {% block snapboard_header %}
            {% endblock %}
            {% block snapboard_main %}
            {% endblock %}
        </div>
        <div id="sb-sidebar" class="span-4 last">
            <div id="sb-nav" class="span-4 last">
                <ul>
                    <li><a href="{% url snapboard_thread_index %}"><span>{% trans "All Discussions" %}</span></a></li>
                    <li><a href="{% url snapboard_category_index %}"><span>{% trans "Categories" %}</span></a></li>
                    {% if user.is_authenticated %}
                        <li><a href="{% url snapboard_favorite_index %}"><span>{% trans "Favorites" %}</span></a></li>
                        <li><a href="{% url snapboard_private_index %}"><span>{% trans "Private Posts" %}</span></a></li>
                        {% if thr %}
                            <li><a href="{% url snapboard_new_thread thr.category.id %}"><span style="color: red;">{% trans "Start Thread" %}</span></a></li>
                        {% endif %}
                        {% if category %}
                            <li><a href="{% url snapboard_new_thread category.id %}"><span style="color: red;">{% trans "Start Thread" %}</span></a></li>
                        {% endif %}
                    {% endif %}
                </ul>
            </div>
            {% block snapboard_panel %}
                {% include "snapboard/include/side_panel.html" %}
            {% endblock %}
        </div>
    </div>
    <div id="sb-footer" class="span-18">
        <p>
            {% trans "This community is powered by" %} <a href="http://code.google.com/p/snapboard/">Snapboard</a><br />
            <a href="http://validator.w3.org/check/referer" title="Check the validity of this site's XHTML">xhtml</a> · <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Check the validity of this site's CSS">css</a>
        </p>
    </div>
</div>
</body>
</html>
{% comment %}
vim: ai ts=4 sts=4 et sw=4
{% endcomment %}
